import request from '@/utils/request'

const selfWash = {
  // 后台洗车会员卡模板查询
  GetSelfServiceCarWashCardList(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCard/GetSelfServiceCarWashCardList_Admin',
      method: 'post',
      data
    })
  },

  // 根据ID获取会员卡信息
  GetSelfServiceCarWashCardById(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCard/GetSelfServiceCarWashCardById',
      method: 'post',
      data
    })
  },
  // 保存自助洗车会员卡模板
  SaveSelfServiceCarWashCard(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCard/SaveSelfServiceCarWashCard',
      method: 'post',
      data
    })
  },
  // 根据ID获取会员卡模板详情
  GetSelfServiceCarWashCardByDetile(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCard/GetSelfServiceCarWashCardById_Admin',
      method: 'post',
      data
    })
  },
  // 删除会员卡模板
  DeleteSelfServiceCarWashCard(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCard/DeleteSelfServiceCarWashCard',
      method: 'post',
      data
    })
  },
  // 更新自助洗车会员卡模板状态
  UpdateSelfServiceCarWashCardStatus(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCard/UpdateSelfServiceCarWashCardStatus',
      method: 'post',
      data
    })
  },
  upLoad(data) {
    return request({
      url: '/api/common/core/UpYun/UploadAuthImgUpyunConfig',
      method: 'post',
      data
    })
  },
  // 列表（新）
  GetSelfServiceCarWashCardPackageByName(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCardPackage/GetSelfServiceCarWashCardPackageByName',
      method: 'post',
      data
    })
  },
  // 根据id获取列表
  GetSelfServiceCarWashCardPackageById(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCardPackage/GetSelfServiceCarWashCardPackageById',
      method: 'post',
      data
    })
  },
  // 上架
  SetSelfServiceCarWashCardPackageStatusById(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCardPackage/SetSelfServiceCarWashCardPackageStatusById',
      method: 'post',
      data
    })
  },
  GetSelfServiceCarWashCardListByPackageId(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCard/GetSelfServiceCarWashCardListByPackageId',
      method: 'post',
      data
    })
  },
  DeleteSelfServiceCarWashCardPackageById(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCardPackage/DeleteSelfServiceCarWashCardPackageById',
      method: 'post',
      data
    })
  },
  SaveSelfServiceCarWashCardPackage(data) {
    return request({
      url: '/api/admin/core/SelfServiceCarWashCardPackage/SaveSelfServiceCarWashCardPackage',
      method: 'post',
      data
    })
  }
}
export default selfWash
